
<?php include view('header');?>
<h1>修改项目</h1>

<form action="project.php?action=add&id=<?php echo $detail['id'];?>" method="post" enctype="multipart/form-data">
<table>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('code'))echo '（*必填）'?></p>项目代码：</label></th><td><input id="code" name="code" type="text" value="<?php if($detail['code']==0)echo '无';else echo $detail['code'];?>"/></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('name'))echo '（*必填）'?></p>项目名称：</label></th><td><input id="name" name="name" type="text" value="<?php echo $detail['name'];?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('responsor'))echo '（*必填）'?></p>项目负责人：</label></th><td><input id="responsor" name="responsor" type="text" value="<?php echo $detail['responsor'];?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('responsormobile'))echo '（*必填）'?></p>负责人电话：</label></th><td><input id="responsormobile" name="responsormobile" type="text" value="<?php echo $detail['responsormobile'];?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('type'))echo '（*必填）'?></p>项目类型：</label></th><td><?php echo Tpl::select('type', Project::$type,$detail['type']);?></td></tr> 
<tr><th><label>添加项目时间：</label></th><td><?php echo rgmdate($detail['dateline']);?></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('deadline'))echo '（*必填）'?></p>项目截止日期：</label></th><td><input id="deadline" name="deadline" class="easyui-datebox" type="text" value="<?php echo rgmdate($detail['deadline'],'Y-m-d');?>" /></td></tr>
<tr><th><label>项目状态：</label></th><td><?php echo $projectstatus[$detail['status']];?></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('source'))echo '（*必填）'?></p>捐赠单位：</label></th><td><input id="source" name="source" type="text" value="<?php echo $detail['source'];?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('sourceaccount'))echo '（*必填）'?></p>对方户名：</label></th><td><input id="sourceaccount" name="sourceaccount" type="text" value="<?php echo $detail['sourceaccount'];?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('amount'))echo '（*必填）'?></p>捐赠数额：</label></th><td><input id="amount" name="amount" type="text" value="<?php echo $detail['amount'];?>" /></td></tr>
<tr><th><label>剩余金额：</label></th><td><?php echo $detail['restamount'];?></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('creditedtime'))echo '（*必填）'?></p>到账日期：</label></th><td><input id="creditedtime" name="creditedtime" class="easyui-datebox" type="text" value="<?php echo rgmdate($detail['creditedtime'],'Y-m-d');?>" /></td></tr>
<tr><th><label><p id="red" name="red"><?php if(Project::isRequiredItem('specifieduses'))echo '（*必填）'?></p>指定用途：</label></th><td><input id="specifieduses" name="specifieduses" type="text" value="<?php echo $detail['specifieduses'];?>" /></td></tr>
<tr><th><label>合同快照：</label></th><td><input type="file" id="contrast" name="contrast" value="<?php echo $detail['contrast'];?>" /></td></tr>
<tr><th><label>感谢信：</label></th><td><input type="file" id="thankletter" name="thankletter" value="<?php echo $detail['thankletter'];?>" /></td></tr>
</table>
<button type="submit">确认修改</button>
</form>

<?php include view('footer');?>